<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>后台管理系统</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="css/global.css?t=1488795362026" media="all">
<link rel="stylesheet" href="css/layui.css?t=1488795362026"  >
<script src="js/jquery.js"></script>
</head>
<body>
<div class="layui-layout layui-layout-admin">
		<div class="layui-header header header-demo">
				<div class="layui-main"> <a class="logo" href="/"> </a>
						<ul class="layui-nav" pc>
								<li class="right"> <span> 用户：jiadangwei</span><a href="/doc/" class="out">退出</a> </li>
						</ul>
				</div>
		</div>
		<div class="layui-side layui-bg-black">
				<div class="layui-side-scroll">
						<ul class="layui-nav layui-nav-tree site-demo-nav">
								<li class="layui-nav-item layui-nav-itemed"> <a class="javascript:;" href="javascript:;">开发工具</a>
										<dl class="layui-nav-child">
												<dd class=""> <a href="/demo/button.html">按钮组</a> </dd>
												<dd class=""> <a href="/demo/form.html">表单集合</a> </dd>
												<dd class=""> <a href="/demo/nav.html">导航与面包屑</a> </dd>
										</dl>
								</li>
								<li class="layui-nav-item layui-nav-itemed"> <a class="javascript:;" href="javascript:;">基本元素</a>
										<dl class="layui-nav-child">
												<dd class=""> <a href="/demo/button.html">按钮组</a> </dd>
												<dd class=""> <a href="/demo/form.html">表单集合</a> </dd>
												<dd class=""> <a href="/demo/nav.html">导航与面包屑</a> </dd>
										</dl>
								</li>
								<li class="layui-nav-item" style="height: 30px; text-align: center"></li>
						</ul>
				</div>
		</div>
		<div class="layui-tab layui-tab-brief" lay-filter="demoTitle">
				<div class="layui-body layui-tab-content site-demo site-demo-body">
						<div class="mian"> 
								<a class="layui-btn" href="add_jigou.html">+添加机构</a>
								<!--搜索 -->
								<div class="gz_search">
										<form class="layui-form" action="">
												<div class="layui-form-item" style="width:100px; float:left; margin-right:20px;">
												      <label class="layui-form-label">搜索</label>
														
												</div>
												<input type="text" name="username" placeholder="请输入机构名称" autocomplete="off" class="layui-input"  style="width:400px; float:left">
												<button class="layui-btn">搜&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;索</button>
										</form>
								</div>
								<!--/搜索 --> 
								
								<div class="gz_tag">
										<div class="layui-tab layui-tab-brief" style="float:right" >
												<ul class="layui-tab-title">
														<li class="layui-this"><a href="11">最近12小时</a></li>
														<li><a>最近24小时</a></li>
														<li><a>最近3天</a></li>
														<li><a>最近7天</a></li>
														<li><a>最近15天</a></li>
														<li><a>最近30天</a></li>
												</ul>
										</div>
								</div>
								<div class="list  info">
										<table class="layui-table" lay-skin="line">
												<colgroup>
												<col width="100">
												<col>
												<col width="100">
												<col width="100">
												<col width="150">
												<col width="100">
												<col width="100">
												<col width="200">
												<col>
												</colgroup>
												<thead>
														<tr>
																<th class="txt_center">ID</th>
																<th>机构名称</th>
																<th class="txt_center">简称</th>
																<th class="txt_center">权重</th>
																<th class="txt_center">创建时间</th>
																<th class="txt_center">创建人</th>
																<th class="txt_center">状态</th>
																<th class="txt_center">操作</th>
														</tr>
												</thead>
												<tbody>
														<tr>
																<td class="txt_center">1000</td>
																<td class=""><a href="?action=edit?id=11&bigid=200">大学生大学生大学生大学生大学生大学生</a></td>
																<td>大甲2017</td>
																<td class="txt_center">1</td>
																<td class="txt_center">2017-04-10 12:23</td>
															    <td class="txt_center">tony</td>
																<td class="txt_center">开启</td>
																<td class="txt_center"><a href="?action=edit?id=11&bigid=200">编辑</a>  <a data-ajax="json/bm.php">禁用</a>  <a data-ajax="json/bm.php">删除</a></td>
														</tr>
														<tr>
																<td class="txt_center">1000</td>
																<td class="">大学生大学生大学生大学生大学生大学生</td>
																<td>大甲2017</td>
																<td class="txt_center">1</td>
																<td class="txt_center">2017-04-10 12:23</td>
															    <td class="txt_center">tony</td>
																<td class="txt_center">开启</td>
																<td class="txt_center"><a>编辑</a>  <a>禁用</a>  <a>删除</a></td>
														</tr>
														<tr>
																<td class="txt_center">1000</td>
																<td class="">大学生大学生大学生大学生大学生大学生</td>
																<td>大甲2017</td>
																<td class="txt_center">1</td>
																<td class="txt_center">2017-04-10 12:23</td>
															    <td class="txt_center">tony</td>
																<td class="txt_center">开启</td>
																<td class="txt_center"><a>编辑</a>  <a>禁用</a>  <a>删除</a></td>
														</tr>
														<tr>
																<td class="txt_center">1000</td>
																<td class="">大学生大学生大学生大学生大学生大学生</td>
																<td>大甲2017</td>
																<td class="txt_center">1</td>
																<td class="txt_center">2017-04-10 12:23</td>
															    <td class="txt_center">tony</td>
																<td class="txt_center">开启</td>
																<td class="txt_center"><a>编辑</a>  <a>禁用</a>  <a>删除</a></td>
														</tr>
														<tr>
																<td class="txt_center">1000</td>
																<td class="">大学生大学生大学生大学生大学生大学生</td>
																<td>大甲2017</td>
																<td class="txt_center">1</td>
																<td class="txt_center">2017-04-10 12:23</td>
															    <td class="txt_center">tony</td>
																<td class="txt_center">开启</td>
																<td class="txt_center"><a>编辑</a>  <a>禁用</a>  <a>删除</a></td>
														</tr>
														<tr>
																<td class="txt_center">1000</td>
																<td class="">大学生大学生大学生大学生大学生大学生</td>
																<td>大甲2017</td>
																<td class="txt_center">1</td>
																<td class="txt_center">2017-04-10 12:23</td>
															    <td class="txt_center">tony</td>
																<td class="txt_center">开启</td>
																<td class="txt_center"><a>编辑</a>  <a data-ajax="json/bm.php">禁用</a>  <a data-ajax="json/bm.php">删除</a></td>
														</tr>
														<tr>
																<td class="txt_center">1000</td>
																<td class="">大学生大学生大学生大学生大学生大学生</td>
																<td>大甲2017</td>
																<td class="txt_center">1</td>
																<td class="txt_center">2017-04-10 12:23</td>
															    <td class="txt_center">tony</td>
																<td class="txt_center">开启</td>
																<td class="txt_center"><a>编辑</a>  <a data-ajax="json/bm.php">禁用</a>  <a data-ajax="json/bm.php">删除</a></td>
														</tr>
														<tr>
																<td class="txt_center">1000</td>
																<td class="">大学生大学生大学生大学生大学生大学生</td>
																<td>大甲2017</td>
																<td class="txt_center">1</td>
																<td class="txt_center">2017-04-10 12:23</td>
															    <td class="txt_center">tony</td>
																<td class="txt_center">开启</td>
																<td class="txt_center"><a>编辑</a>  <a data-ajax="json/bm.php">禁用</a>  <a data-ajax="json/bm.php">删除</a></td>
														</tr>
														<tr>
																<td class="txt_center">1000</td>
																<td class="">大学生大学生大学生大学生大学生大学生</td>
																<td>大甲2017</td>
																<td class="txt_center">1</td>
																<td class="txt_center">2017-04-10 12:23</td>
															    <td class="txt_center">tony</td>
																<td class="txt_center">开启</td>
																<td class="txt_center"><a>编辑</a>  <a data-ajax="json/bm.php">禁用</a>  <a data-ajax="json/bm.php">删除</a></td>
														</tr>
														
														<tr>
																<td class="txt_center">1000</td>
																<td class="">大学生大学生大学生大学生大学生大学生</td>
																<td>大甲2017</td>
																<td class="txt_center">1</td>
																<td class="txt_center">2017-04-10 12:23</td>
															    <td class="txt_center">tony</td>
																<td class="txt_center">开启</td>
																<td class="txt_center"><a>编辑</a>  <a data-ajax="json/bm.php">禁用</a>  <a data-ajax="json/bm.php">删除</a></td>
														</tr>
												</tbody>
										</table>
								</div>
								<div class="layui-box layui-laypage layui-laypage-default" id="layui-laypage-0"><a href="javascript:;" class="layui-laypage-prev" data-page="3">上一页</a><a href="javascript:;" data-page="1">1</a><a href="javascript:;" data-page="2">2</a><a href="javascript:;" data-page="3">3</a><span class="layui-laypage-curr"><em class="layui-laypage-em"></em><em>4</em></span><a href="javascript:;" data-page="5">5</a><span>…</span><a href="javascript:;" class="layui-laypage-last" title="尾页" data-page="100">末页</a><a href="javascript:;" class="layui-laypage-next" data-page="5">下一页</a></div>
						</div>
				</div>
		</div>
		<div class="layui-footer footer footer-demo">
				<div class="layui-main">
						<p>2017 &copy; <a href="/">layui.com</a> MIT license</p>
				</div>
		</div>
		<div class="site-tree-mobile layui-hide"> <i class="layui-icon">&#xe602;</i> </div>
		<div class="site-mobile-shade"></div>
</div>
<script src="layui.js"></script> 
<script src="js/fun.js"></script> 
<script>
layui.use('layer', function(){
  var layer = layui.layer;
     $("[data-ajax]").each(function(index, element) {
		var T=$(this);
		T.click(function(){
			var url=$(this).data("ajax")
			 layer.confirm('确认改操作?', function(index){
			  $.ajax({
					url: url,
					type: "get",
					dataType: "json",
					success: function(data) {
						   if(data.rescode==0){
							   layer.close(index);
							   window.location.reload();
							}
					},
					error: function(er) {
						BackErr(er);
					}
				});
			 
			}); 
			
		})
		
	});
	 
  
}); 
      
      
//Demo
layui.use('form', function(){
  var form = layui.form();
  //监听提交
  form.on('submit(formDemo)', function(data){
    layer.msg(JSON.stringify(data.field));
    return false;
  });
})
</script>
</body>
</html>
